package info.pandd.centrumDowodzeniaSMS;

import android.net.Uri;
import android.provider.BaseColumns;

public class SMSHistoryProviderMetaData{
	public static final String AUTHORITY = "info.pandd.centrumDowodzeniaSMS.SMSHistoryProvider";
	
	public static final String DATABASE_NAME = "SMSHistory.db";
	public static final int DATABASE_VERSION = 3;
	public static final String HISTORY_TABLE_NAME = "wyslane_wiadomosci";
	
	private SMSHistoryProviderMetaData() {}
	
	//wewnętrzna klasa opisująca obiekt wysłanej wiadomości
	public static final class SMSTableMetaData implements BaseColumns{
		private SMSTableMetaData() {}
		public static final String TABLE_NAME = "wyslane_wiadomosci";
		
		//definicje identyfikatora URI i typu MIME
		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/wyslane_wiadomosci");
		
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.centrumDyspozycjiSMS.history";
		
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.centrumDyspozycjiSMS.history";
		
		public static final String DEFAULT_SORT_ORDER = "data DESC";
		
		//kolumny w tabeli z określonym typem w komentarzu
		//String
		public static final String MSG_RECEIVER_NAME = "odbiorca_nazwa";
		
		//String
		public static final String MSG_RECEIVER_NUMBER = "odbiorca_numer";
		
		//String
		public static final String MSG_TEXT = "tresc_wiadomosci";
		
		//long z System.currentTimeMilis() -> String
		public static final String MSG_DATE = "data";
	}
}